package com.example.demo01.Entity.webEntity;

import org.springframework.stereotype.Component;

@Component
public class ClientUserInfo {
    //attributes
    private String idNum;//身份证号
    private String name;//姓名
    private String notaion;//民族
    private String address;//户籍
    private String birthTime;//出生年月
    private Character sex;//性别
    private String curAddress;//现住址
    private String occupation;//职业
    private String nurseLevel;//护理等级
    private String phoneNum;//手机号
    private Float lon;//wgs84坐标-经度
    private Float lat;//wgs84坐标-纬度

    //constructors
    public ClientUserInfo() {
        super();
    }

    public ClientUserInfo(String idNum, String name, String notaion, String address, String birthTime, Character sex, String curAddress, String nurseLevel, String phoneNum, String occupation) {
        this.idNum = idNum;
        this.name = name;
        this.notaion = notaion;
        this.address = address;
        this.birthTime = birthTime;
        this.sex = sex;
        this.curAddress = curAddress;
        this.nurseLevel = nurseLevel;
        this.occupation = occupation;
        this.phoneNum = phoneNum;
    }

    public ClientUserInfo(String idNum, String name, String notaion, String address, String birthTime, Character sex, String curAddress, String occupation, String nurseLevel, String phoneNum, Float lon, Float lat) {
        this.idNum = idNum;
        this.name = name;
        this.notaion = notaion;
        this.address = address;
        this.birthTime = birthTime;
        this.sex = sex;
        this.curAddress = curAddress;
        this.occupation = occupation;
        this.nurseLevel = nurseLevel;
        this.phoneNum = phoneNum;
        this.lon = lon;
        this.lat = lat;
    }

    //toString
    @Override
    public String toString() {
        return "ClientUserInfo{" +
                "idNum='" + idNum + '\'' +
                ", name='" + name + '\'' +
                ", notaion='" + notaion + '\'' +
                ", address='" + address + '\'' +
                ", birthTime='" + birthTime + '\'' +
                ", sex=" + sex +
                ", curAddress='" + curAddress + '\'' +
                ", occupation='" + occupation + '\'' +
                ", nurseLevel='" + nurseLevel + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", lon='" + lon + '\'' +
                ", lat='" + lat + '\'' +
                '}';
    }

    //setter
    public void setIdNum(String idNum) {
        this.idNum = idNum;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNotaion(String notaion) {
        this.notaion = notaion;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setBirthTime(String birthTime) {
        this.birthTime = birthTime;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

    public void setCurAddress(String curAddress) {
        this.curAddress = curAddress;
    }

    public void setNurseLevel(String nurseLevel) {
        this.nurseLevel = nurseLevel;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public void setLon(Float lon) {
        this.lon = lon;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    //getter
    public String getIdNum() {
        return idNum;
    }

    public String getName() {
        return name;
    }

    public String getNotaion() {
        return notaion;
    }

    public String getAddress() {
        return address;
    }

    public String getBirthTime() {
        return birthTime;
    }

    public Character getSex() {
        return sex;
    }

    public String getCurAddress() {
        return curAddress;
    }

    public String getNurseLevel() {
        return nurseLevel;
    }

    public String getOccupation() {
        return occupation;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public Float getLon() {
        return lon;
    }

    public Float getLat() {
        return lat;
    }
}
